<table width="100%">
    <tr>
        <th>info</th>
        <th>onl</th>
        <th>pro</th>
        <th>resource</th>
        <th>updated time</th>
        <th>find</th>
    </tr>
    <?php foreach ($data as $item): ?>
        <tr>
            <td><?php echo $item['name'] ?> lv <?php echo $item['level'] ?>, alliance <?php echo $item['alliance_name'] ?></td>
            <td><?php if ($item['online']) echo 'x' ?></td>
            <td><?php if ($item['damage_protection']) echo 'x' ?></td>
            <td><?php echo "C=" . round($item['res1'] / 1000000, 1) . "m, G=" . round($item['res2'] / 1000000, 1) . "m, E=" . round($item['res3'] / 1000000, 1) . "m, U=" . round($item['res4'] / 1000000, 1) ?>m</td>
            <td><?php echo $item['last_update'] ?></td>
            <td><?php echo $item['source'] ?></td>
        </tr>
    <?php endforeach; ?>
</table>
